/* 存放首页相关路由 */

import { DEFAULT_LAYOUT } from '../base';
// import DEFAULT_LAYOUT from '@/layout/default-layout.vue'
import { AppRouteRecordRaw } from '../types';

const HOMEPAGE: AppRouteRecordRaw = {
  path: '/homepage',
  name: 'homepage',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '首页',
    requiresAuth: true,
    icon: 'icon-home',
    order: 0,
    hideInMenu: false,
    key: '1',
  },
  redirect: {
    name: 'Workplace',
  },
  children: [
    {
      path: 'workplace',
      name: 'Workplace',
      component: () => import('@/views/home-page/work-place/index.vue'),
      meta: {
        locale: '工作台',
        requiresAuth: true,
        icon: 'icon-computer',
        roles: ['*'],
        hideInMenu: false,
      },
    },

    {
      path: 'announcement-center',
      name: 'AnnouncementCenter',
      component: () => import('@/views/home-page/announcement-center/index.vue'),
      meta: {
        locale: '公告中心',
        requiresAuth: true,
        icon: 'icon-sound-fill',
        roles: ['*'],
        hideInMenu: false,
      },
    },

    {
      path: 'databorad',
      name: 'Databoard',
      component: () => import('@/views/home-page/databoard/index.vue'),
      meta: {
        locale: '生产数据大屏',
        requiresAuth: true,
        icon: 'icon-bytedance-color',
        roles: ['*'],
        hideInMenu: false,
      },
    },

    {
      path: 'human-resources',
      name: 'HumanResoureces',
      component: () => import('@/views/home-page/human-resources/index.vue'),
      meta: {
        locale: '人力数据分析报表',
        requiresAuth: true,
        icon: 'icon-bar-chart',
        roles: ['*'],
        hideInMenu: false,
      },
    },

  ],
};

export default HOMEPAGE;
